import {axiosG, axiosK, axiosP} from "@/api";

/**
 * @description 财务管理
 * */
export const addMoneyApi = data => axiosP('fund/addPrice', data); // 充值金额
export const reduceMoneyApi = data => axiosP('fund/delPrice', data); // 扣除金额
export const addSonExpressOrderApi = data => axiosP('fund/addSonExpressOrder', data); // 子单充值
export const getFundApi = data => axiosG('fund/getFund', data); // 获得网点资金
export const pageFundRecordsApi = data => axiosG('fund/pageFundRecords', data); // 分页获得账单
export const updateFundApi = data => axiosP('fund/updateFund', data); // 更新网点资金
export const delSonNumberApi = data => axiosP('fund/delSonNumber', data); // 扣除子单数量

/**
 * @description 问题件
 * */
export const pageProblemOrderApi = data => axiosG('operation/pageProblemOrder', data); // 分页获得问题单号
export const getProblemOperationApi = data => axiosG('operation/getProblemOperation', data); // 获得问题单号详情
export const pageMyProblemOrderApi = data => axiosG('operation/pageMyProblemOrder', data); // 分页获得自己的问题件
export const problemSuccessApi = data => axiosK('operation/success', data); // 处理问题件成功
export const addFeedBackApi = data => axiosK("operation/addFeedBack", data); // 添加反馈

/**
 * @description 问题件充值/扣除
 * */
export const addProblemPriceApi = data => axiosP("fund/addProblemPrice", data); // 充值金额
export const delProblemPriceApi = data => axiosP("fund/delProblemPrice", data); // 扣除金额
